<?php
$row = $data_member->row();
?>
<div id="content-outer">
    <div id="content">
        <div id="page-heading"><h1>Profile</h1></div>
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tbody>
                <tr>
                    <th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>images/shared/side_shadowleft.jpg" width="20" height="300" alt=""></th>
                    <th class="topleft"></th>
                    <td id="tbl-border-top">&nbsp;</td>
                    <th class="topright"></th>
                    <th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>images/shared/side_shadowright.jpg" width="20" height="300" alt=""></th>
                </tr>
                <tr>
                    <td id="tbl-border-left"></td>
                    <td>
                        <!--  start content-table-inner -->
                        <div id="content-table-inner">

                            <table border="0" width="100%" cellpadding="0" cellspacing="0">

                                <tbody><tr valign="top">
                                        <td>


                                            <!-- start id-form -->
                                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                                <?php
                                                echo form_open('ProfileMember/UpdateProfile');
                                                ?>
                                                <tbody><tr>
                                                        <th valign="top">Username:</th>
                                                        <td>
                                                            <?php
                                                            echo form_label($row->USERNAME);
                                                            ?> 
                                                        </td>
                                                        <td style="width:500px">
                                                            <div width="400px" id="error_username" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">ID Card Number:</th>
                                                        <td>
                                                            <?php
                                                            echo form_label($row->ID_CARD);
                                                            ?> 
                                                        </td>
                                                        <td>
                                                            <div id="error_idCard" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div>
                                                        </td>
                                                    </tr> 
                                                    <tr>
                                                        <th valign="top">First Name:</th>
                                                        <td><?php
                                                            echo form_label($row->FIRSTNAME);
                                                            ?></td>
                                                        <td><div id="error_firstname" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div></td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">Last Name:</th>
                                                        <td>
                                                            <?php
                                                            echo form_label($row->LASTNAME);
                                                            ?>
                                                        </td>
                                                        <td><div id="error_lastname" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div></td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">BirthDay:</th>
                                                        <td class="noheight">

                                                            <table border="0" cellpadding="0" cellspacing="0">
                                                                <tbody>
                                                                    <tr valign="top">
                                                                        <td>
                                                                            <?php echo form_label($row->DOB); ?>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                        <td></td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">Address:</th>
                                                        <td><?php
                                                            echo form_label($row->ADDRESS);
                                                            ?></td>
                                                        <td>
                                                            <div id="error_address" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">Mobile No.:</th>
                                                        <td><?php
                                                            echo form_label($row->MOBILE);
                                                            ?></td>
                                                        <td>
                                                            <div id="error_mobile" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner">This field is required.</div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th valign="top">Email:</th>
                                                        <td><?php
                                                            echo form_label($row->EMAIL);
                                                            ?></td>
                                                        <td>
                                                            <div id="error_email" style="visibility:hidden">
                                                                <div class="error-left"></div>
                                                                <div class="error-inner" id="sub_error_email">This field is required.</div>
                                                            </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <th>&nbsp;</th>
                                                        <td valign="top">
                                                        </td>
                                                        <td></td>
                                                    </tr>
                                                </tbody>
                                                <?php echo form_close(); ?>
                                            </table>
                                            <!-- end id-form  -->

                                        </td>
                                        <td>
                                            <?php if ($this->session->userdata('username') != ""): ?>
                                                <div id="related-activities">

                                                    <!--  start related-act-top -->
                                                    <div id="related-act-top">
                                                        <img src="<?php echo base_url(); ?>images/header_course.png" width="271" height="43" alt="">
                                                    </div>
                                                    <!-- end related-act-top -->

                                                    <!--  start related-act-bottom -->
                                                    <div id="related-act-bottom">

                                                        <!--  start related-act-inner -->
                                                        <div id="related-act-inner">

                                                            <?php foreach ($allCourseList as $course): ?>
                                                                <div class="left"><a href=""><img src="<?php echo base_url(); ?>images/forms/icon_plus.gif" width="21" height="21" alt=""></a></div>
                                                                <div class="right">
                                                                    <h5><?php echo $course->CODE . ' - ' . $course->NAME ?></h5>
                                                                    <?php echo $course->DETAIL ?>
                                                                    <ul class="greyarrow">
                                                                        <li><?php echo 'Hours : ' . $course->HOURS ?></li> 
                                                                        <li><?php echo 'Times : ' . $course->TIMES ?></li> 
                                                                        <li><?php // echo 'Prices : ' . $course->PRICE ?></li>
                                                                    </ul>
                                                                </div>

                                                                <div class="clear"></div>
                                                                <div class="lines-dotted-short"></div>
                                                            <?php endforeach; ?>


                                                        </div>
                                                        <!-- end related-act-inner -->
                                                        <div class="clear"></div>

                                                    </div>
                                                    <!-- end related-act-bottom -->

                                                </div>
                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank"></td>
                                        <td></td>
                                    </tr>
                                </tbody></table>


                            <div class="clear"></div>


                        </div>
                        <!--  end content-table-inner  -->
                    </td>
                    <td id="tbl-border-right"></td>
                </tr>
                <tr>
                    <th class="sized bottomleft"></th>
                    <td id="tbl-border-bottom">&nbsp;</td>
                    <th class="sized bottomright"></th>
                </tr>
            </tbody></table>

        <div class="clear">&nbsp;</div>
    </div>
</div>